<template>
  <view class="u-content">
    <div class="title">{{ detail.name }}</div>
    <u-parse :html="detail.content"></u-parse>
  </view>
</template>

<script>
export default {
  name: "LegalHubDetail",
  data() {
    return {
      detail: {}
    }
  },
  onLoad({ id }) {
    this.$api.getLegalHubDetail(id).then(res => {
      this.detail = res
    })
  }
}
</script>

<style scoped>
.title {
  font-size: 28rpx;
  height: 36rpx;
  line-height: 36rpx;
  width: 100%;
  text-align: center;
}
.u-content {
  padding: 20rpx;
}
</style>
